package com.lianbang.pharmacy.bean

import android.os.Parcel
import android.os.Parcelable
import com.chad.library.adapter.base.entity.node.BaseNode
import kotlinx.android.parcel.Parcelize

/**
 * Created by maoqi on 2020/12/29.
 */

data class MedicineCategoryListBean(
    val cate_name: String,
    val child: List<MedicineCategory2ListBean>?,
    val id: Int
)

data class MedicineCategory2ListBean(
    val cate_name: String,
    val child: List<MedicineCategory3ListBean>?,
    val id: Int
) : BaseNode() {
    override val childNode: MutableList<BaseNode>?
        get() {
            return child as MutableList<BaseNode>?
        }
}

data class MedicineCategory3ListBean(
    val cate_name: String,
    val id: Int,
    val pic: String,
    override val childNode: MutableList<BaseNode>?
) : BaseNode()